Skip to content

tests: make compression + debugging tests cross-platform - #17

Merged
gokulkrishna98 merged 1 commit into
apple:mainfrom
gokulkrishna98:fix/cross-platform-test-helpers
Jun 15, 2026
Merged

tests: make compression + debugging tests cross-platform#17
gokulkrishna98 merged 1 commit into
apple:mainfrom
gokulkrishna98:fix/cross-platform-test-helpers

Conversation

@gokulkrishna98

Copy link
Copy Markdown
Contributor

Description:

  • tests/compression/test_compression.py: replace the file-local _validate_execution helper with the shared validate_numerical_output util from tests/utils.py. The util goes through the standard numerical-validation path that already works across platforms, so the separate helper is no longer needed.
  • tests/debugging/{test_debug_info,test_inspector,test_validator}.py: add pytest.mark.skipif(sys.platform != "darwin", ...) to tests that load a runtime asset via AIModel.load, since that path is only supported on macOS today. The tests fail with a "no such file or directory" error on Linux otherwise.
  • Needed for proper sync between repos.

Testing:

python unit test
CI

- tests/compression/test_compression.py: replace the file-local
  `_validate_execution` helper with the shared `validate_numerical_output`
  util from `tests/utils.py`. The util goes through the standard
  numerical-validation path that already works across platforms, so the
  separate helper is no longer needed.
- tests/debugging/{test_debug_info,test_inspector,test_validator}.py:
  add `pytest.mark.skipif(sys.platform != "darwin", ...)` to tests that
  load a runtime asset via `AIModel.load`, since that path is only
  supported on macOS today. The tests fail with a "no such file or
  directory" error on Linux otherwise.
@gokulkrishna98
gokulkrishna98 merged commit 70c9a7d into apple:main Jun 15, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants